<route lang="json5" type="page">
  {
    layout: 'default',
    style: {
      navigationBarTitleText: '结果',
    },
    anonymous: true
  }
  </route>

<script lang="ts" setup>
const onGoBack = () => {
  uni.navigateBack()
}
const onGoHome = () => {
  uni.switchTab({ url: '/pages/index/index' })
}
</script>

<template>
  <view class="flex-col-start-center bg-white page">
    <view class="mt-30% flex-col-center-center">
      <i class="iconfont iconfont-success color-primary !font-size-200rpx" />
      <text class="mt-xs text-lg color-primary">
        操作成功
      </text>
    </view>
    <view class="mt-100rpx w-full px">
      <wd-button class="mb" type="primary" block :round="false" size="large" @click="onGoBack">
        返回页面
      </wd-button>
    </view>
    <view class="my w-full px">
      <wd-button hairline plain block size="large" @click="onGoHome">
        返回主页
      </wd-button>
    </view>
  </view>
</template>

  <style lang="scss" scoped>
  //
  </style>
